package com.ruoyi.common.enums;

/**
 * 角色枚举
 */
public enum RoleEnum {
    ADMIN(1L, "admin","超级管理员"),
    MANAGER(2L, "manager","管理员"),
    COACH(3L, "coach","教练"),
    STUDENT(4L, "student","学员"),
    PARENT(5L, "parent","家长"),
    OUTSIDE(6L, "outside","校外队员");

    private final Long roleId;
    private final String roleKey;
    private final String roleName;

    /**
     * 构造方法
     * @param roleId 角色ID
     * @param roleKey 角色KEY
     * @param roleName 角色名称
     */
    RoleEnum(Long roleId, String roleKey, String roleName) {
        this.roleId = roleId;
        this.roleKey = roleKey;
        this.roleName = roleName;
    }

    /**
     * 角色ID
     * @return 角色ID
     */
    public Long getRoleId() {
        return roleId;
    }

    /**
     * 角色KEY
     * @return 角色KEY
     */
    public String getRoleKey() {
        return roleKey;
    }

    /**
     * 角色名称
     * @return 角色名称
     */
    public String getRoleName() {
        return roleName;
    }
}
